package cn.com.open.opensaas.scoreservice.mapper;

import cn.com.open.opensaas.scoreservice.domain.TestPaperModel.TestPaperContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface TestPaperContentMapper {
	/**
	 * 根据Id查询试卷
	 * @param testPaperId
	 * @return
	 */
	@Select("select * from TestPaperContent where TestPaperID = #{testPaperId}")
	public TestPaperContent findTestPaperById(@Param("testPaperId") String testPaperId);

	/**
	 * 查询所有数据  用于测试用例
	 * @return
	 */
	@Select("SELECT * FROM TestPaperContent")
	List<TestPaperContent> findAll();
}